/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.sidepanels;

import java.awt.Color;
import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

/**
 *
 * @author Arfeniel
 */
public class UneditableRenderer extends DefaultTableCellRenderer {

    @Override
    public Component getTableCellRendererComponent(JTable table, Object color, boolean isSelected, boolean hasFocus, int row, int column) {
        Component c = super.getTableCellRendererComponent(table, color, isSelected, hasFocus, row, column);
        c.setForeground(Color.LIGHT_GRAY);
        return c;
    }
}


